package com.interfaces;

/**
 * @author zhuangqi
 * @@date 2017/1/16.
 */
interface USB {
    public void read();
    public void write();
}

class Phone implements USB {
    public void read() {
        System.out.println("Phone --> Read");
    }

    public void write() {
        System.out.println("Phone --> Write");
    }
}

class Test {
    public static void main(String[] args) {
        Phone phone = new Phone();
        USB usb = phone;
        usb.read();
        usb.write();
    }
}